package com.atguigu.spzx.product.client.anno;

import com.atguigu.spzx.product.client.fallback.ServiceProductClientFallback;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
//引入ServiceProductClientFallback组件类到容器中
@Import(ServiceProductClientFallback.class)
//扫描Feign客户端对象到容器中
@EnableFeignClients(basePackages = "com.atguigu.spzx.*.client")
public @interface EnableProductClient {
}
